﻿using System;
using System.Collections.Generic;
using System.Text;

namespace System.Net.Http
{
    public class JsonContent : StringContent
    {
        public JsonContent(object content) : this(content, Encoding.UTF8)
        {
        }
        public JsonContent(object content, Encoding encoding) : base(Newtonsoft.Json.JsonConvert.SerializeObject(content), encoding, "application/json")
        {

        }
    }
}
